package org.fire.client;

import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;

/**
 * channel初始化
 * 
 * @author lhl
 *
 */
public class DefaultChannelInitializer extends ChannelInitializer<Channel>
{
	@Override
	protected void initChannel(Channel ch) throws Exception
	{
		ch.pipeline().addLast("decoder", new DefaultProtocolDecoder());
		ch.pipeline().addLast("encoder", new DefaultProtocolEncoder());
		ch.pipeline().addLast("iohandler", new DefaultIOHandler());
	}
}
